<?php

//get details
function getSiteDetails( $siteId )
{
	//query db for site details
	$tableName = "site";
	$columnName = "SiteID";
	$query = "SELECT * FROM `" . $tableName . "` WHERE `" . $columnName . "` = '" . $siteId . "'";
	$result = mysql_query( $query ) or die(mysql_error());
	
	return $result;
}

?>